<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            display: flex;
            width: 60%;
            background-color: pink;
            margin: 0 auto;
        }
        div span{
            width: 100px;
            line-height: 75px;
            background-color:  DodgerBlue;
            color: #fff;
            margin: 10px;
            text-align: center;
            color: 30px;
        }
    </style>
</head>
<body>
    <div>
        <span style="order:2">1</span>
        <span style="order: 1;">2</span>
        <span style="order: 4;">3</span>
        <span style="order: 3;">4</span>
    </div>
</body>
</html>